-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
More robust fix for re-export of __all__ #20487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| self.incomplete_namespaces = incomplete_namespaces | ||
| self.all_exports: list[str] = [] | ||
| # Map from module id to list of explicitly exported names (i.e. names in __all__). | ||
| # This is used by stubgen/stubtest, DO NOT use for any other purposes as it is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| # This is used by stubgen/stubtest, DO NOT use for any other purposes as it is | |
| # This is used by stubgen, DO NOT use for any other purposes as it is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like it should be easy to remove this from stubgen entirely, i can make a PR after this is merged
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks!
|
According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅ |
Follow up to python#20487
Follow up to python#20487
Follow up to python#20487
Follow up to python#20487
This allows to re-enable one test skipped in parallel mode.
The previous solution for re-export of
__all__(see #10382) didn't work on incremental runs (see added test).